import abstract from '@/views/common/abstract.vue';

import User from '@/views/setting/user.vue';

import booksList from '@/views/books/books-list.vue';

import orderList from '@/views/orders/order-list.vue';


export default [
  {
    path: '/setting',
    name: 'setting',
    meta: {
      name: '管理者信息',
      icon: 'iconfont icon-shezhi',//用来存放图标
    },
    component: abstract,
    children: [
      {
        path: 'user',
        name: 'user',
        meta: {
          name: '个人中心',
          icon: 'iconfont icon-gerenzhongxin',
        },
        component: User,
      }
    ]
  },
  {
    path: '/books',
    name: 'books',
    meta: {
      name: '书籍管理',
      icon: 'iconfont icon-shangpin',
    },
    component: abstract,
    children: [
      {
        path: 'list',
        name: 'bookslist',
        meta: {
          name: '书籍列表',
          icon: 'iconfont icon-liebiao',
        },
        component: booksList,
      },
    ]
  },
  {
    path: '/orders',
    name: 'oders',
    meta: {
      name: '订单管理',
      icon: 'iconfont icon-dingdan',
    },
    component: abstract,
    children: [
      {
        path: 'list',
        name: 'orderslist',
        meta: {
          name: '订单列表',
          icon: 'iconfont icon-liebiao',
        },
        component: orderList,
      }
    ]
  },
]
